/*
 * @Author: yxfan
 * @Date: 2024-12-16 18:31:27
 * @LastEditTime: 2024-12-16 19:27:39
 * @FilePath: /umi-demo/src/pages/test/redux/index.jsx
 * @Description:
 */
import { useSelector, useDispatch } from 'umi';
import Son from './Son';
import { useBearStore } from './store';

export default () => {
    const { num } = useSelector((state) => state.redux);
    const bears = useBearStore((state) => state.bears);

    console.log('Parent render', useBearStore.getState());

    return (
        <div>
            <h2>父组件</h2>
            <Son />
        </div>
    );
};
